import React, { Component } from 'react';
import {
    WebView,View,Text,Dimensions
} from 'react-native';


export default class ProductWebview extends Component{
    // 构造
      constructor(props) {
        super(props);
        // 初始状态
        this.state = {
            url:this.props.navigation.state.params.url
        };
      }
    render(){
        let width = Dimensions.get('window').width;
        let height = Dimensions.get('window').height;
        return(
            <WebView
                source={{uri:this.state.url}}
                style={{width:width,height:height}}
            >

            </WebView>
        );
    }
}